package Servers

import (
	"DBModel"
	"GameLogic/AIRobot"
	"GameLogic/LogicCore"
	"PBMessage"
	. "SGNet"
	. "Servers/BaseServer"
)

type ScenePlayer struct {
	UserId       int64
	AccountModel *DBModel.AccountModel
	Sess         *Session
	curServer    *SceneServer
	IsRobotValue bool
	ReadyPlayer  *PBMessage.ReadRoomPlayer
	AIUnit       *AIRobot.AIUnit
	Unit         LogicCore.IUnit
	GenericPlayer
}

func (scenePlayer *ScenePlayer) GetSeesion() *Session {
	return scenePlayer.Sess
}

func (this *ScenePlayer) IsRobot() bool {
	return this.IsRobotValue
}

func (scenePlayer *ScenePlayer) GetAccountModel() *DBModel.AccountModel {
	return scenePlayer.AccountModel
}
func (scenePlayer *ScenePlayer) GetServer() IServer {
	return scenePlayer.curServer
}

func (scenePlayer *ScenePlayer) GetUserId() int64 {
	return scenePlayer.UserId
}

func (sceneplayer *ScenePlayer) GetReadyPlayerInfo() *PBMessage.ReadRoomPlayer {
	return sceneplayer.ReadyPlayer
}
func (this *ScenePlayer) GetGenericPlayer() *GenericPlayer {
	return &this.GenericPlayer
}
